package com.xmb.common.dao;

import com.xmb.common.entity.XmbUserScoreBlotter;
import com.xmb.common.entity.reward.ActivityRanking;

import java.math.BigDecimal;
import java.util.List;

public interface XmbUserScoreBlotterMapper {
    int insert(XmbUserScoreBlotter record);

    int insertSelective(XmbUserScoreBlotter record);

    XmbUserScoreBlotter selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(XmbUserScoreBlotter record);

    int updateByPrimaryKeyWithBLOBs(XmbUserScoreBlotter record);

    int updateByPrimaryKey(XmbUserScoreBlotter record);

    BigDecimal getTotalScore(Long userId);

    List<XmbUserScoreBlotter> getScoreList(XmbUserScoreBlotter record);

    List<ActivityRanking> getScoreRanking(Long typeId);

    ActivityRanking getCurrentUserActivityRewardRanking(XmbUserScoreBlotter scoreBlotter);
}